
# total = 0
#
# async def desc():
#     global total
#     print('desc id is:{}'.format(id(total)))
#     for i in range(1000000):
#         total -= 1
#
# async def add():
#     global total
#     print('add id is:{}'.format(id(total)))
#     for i in range(1000000):
#         total +=1
#
# if __name__ == '__main__':
#     import asyncio
#     tasks = [add(), desc()]
#     loop = asyncio.get_event_loop()
#     loop.run_until_complete(asyncio.wait(tasks))
#     print(total)
